$(function(){
	//页面加上查询条件
	showCondition(true);
	
	paramTabPage[tabId]= $("#tabContent > .tab-pane.active").data();
		
	var depCode = paramTabPage[tabId].depCode;
	var depName = paramTabPage[tabId].depName;
	$("#" + tabId + " #depCode").val(depCode);
	$("#" + tabId + " #depName").val(depName);
	$("#" + tabId + " #deptarget").html('<i class="fa fa-file-text-o" ></i>' + depName + "病组指标")
	$("#" + tabId + " #depalltarget").html('<i class="fa fa-file-text-o" ></i>' + depName + "科室指标")
	
	var depGroupCode = paramTabPage[tabId].depGroupCode;
	$("#" + tabId + " #depGroupCode").val(depGroupCode);		
	var depGroupName = paramTabPage[tabId].depGroupName;
	$("#"+tabId+" #depGroupName").val(depGroupName);
	$("#"+tabId+" #depgrouptarget").html('<i class="fa fa-file-text-o" ></i>'+depGroupName +"指标")
	
	getQuotas("departmentDisDepMonitor_1", loadData_1, "departmentdephosp-ul");
	
	function loadData_1(totalQuota){
		//科室 (1.dep 2.All) 
		loadDepartmentAllQuota("dep",totalQuota,"departmentDepQuotasTopId","departmentdephosp-ul");
		loadDepartmentAllQuota("depGroup",totalQuota,"departmentDepGroupQuotasTopId","departmentdepgrouphosp-ul");
		/*加载下面的的div
		参数：1.查询指标2.表格头部显示的名字3.布局所在的页面4。div下面的ul*/
		loadDepartmentQuota(totalQuota,"主诊组","departmentDepQuotasId","departmentdep-ul");					 
		/*为下半部分加载数据 
		参数：3.表格第一列加载链接4.表格操作中的链接*/
		loadDepartmentQuotaData(totalQuota,"clinic","","");
	}
});